# -*- coding: utf-8 -*-
from django.db import models
from model_utils.models import TimeFramedModel
from smart_selects.db_fields import ChainedForeignKey 
from abs_models.models import AbsNamedModel

class Estadio(AbsNamedModel):
    "Representa um Estadio"
    
    estado = models.ForeignKey('address.State')
    cidade = ChainedForeignKey('address.City',chained_field="estado", chained_model_field="state",show_all=False, auto_choose=True)
    
    
    class Meta:
        app_label = 'estadios'
        
    def __unicode__(self):
        return self.nome